package com.hpeng.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hpeng.sys.dao.CategorysDao;
import com.hpeng.sys.model.Category;
import com.hpeng.sys.service.CategoryMgr;

@Component("categoryMgr")
public class CategorysMgrImpl implements CategoryMgr{
	public List<Category> getCategoryByParentId(String categoryId){
		return categorysDao.getCategoryByParentId(categoryId);
	}
	public List<Category> getAllCategory(){
		return categorysDao.getAllCategory();
	}
	@Resource
	private CategorysDao categorysDao;
}